package com.jzo2o.customer.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.AgencyCertificationAuditResDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;

/**
 * <p>
 * 机构认证审核表 服务类
 * </p>
 *
 * @author szc
 * @since 2025-09-17
 */
public interface IAgencyCertificationAuditService extends IService<AgencyCertificationAudit> {

    /**
     * 机构端提交认证
     *
     * @param agencyCertificationAuditAddReqDTO 机构认证审核表
     */
    void certification(AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO);

    /**
     * 查询最新驳回原因
     *
     * @return 驳回原因
     */
    RejectReasonResDTO getRejectReason();
    
    /**
     * 分页查询
     *
     * @param agencyCertificationAuditPageQueryReqDTO 查询参数
     * @return 分页结果
     */
    PageResult<AgencyCertificationAuditResDTO> pageQuery(AgencyCertificationAuditPageQueryReqDTO agencyCertificationAuditPageQueryReqDTO);

    /**
     * 审核机构认证信息
     *
     * @param certificationStatus 认证状态
     * @param rejectReason 驳回原因
     * @param id 审核项ID
     */
    void audit(Integer certificationStatus, String rejectReason, Long id);
}
